package ModelLayer;
import ControlLayer.*;
import java.util.ArrayList;
import ModelLayer.*;



public class Copy
{
    private int serialNumber;
    private String purchaseDate;
    private double purchasePrice;
    DVD dvd;
    

    
    public Copy(int serialNumber, String purchaseDate, double PurchasePrice)
    {
        this.serialNumber = serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
    }
    public void setSerialNumber(int serialNumber)
    {
    this.serialNumber = serialNumber;
    }
    
    public void setPurchaseDate(String purchaseDate)
    {
    this.purchaseDate = purchaseDate;
    }
    
    public void setPurchasePrice(double purchasePrice)
    {
    this.purchasePrice = purchasePrice;
    }
    
    public int getSerialNumber()
    {
    return serialNumber;
    }
    
    public String getPurchaseDate()
    {
    return purchaseDate;
    }
    
    public double getPurchasePrice()
    {
    return purchasePrice;
    }
    public void getInformationAboutCopysDVD()
    {
        System.out.println("The id of dvd is " + dvd.getId());
        System.out.println("The title of film is " + dvd.getTitle());
        System.out.println("The publication date of film is " + dvd.getPublicationDate());
        System.out.println("The author of film is " + dvd.getAuthor());
    }}



